import {createRouter, createWebHistory} from 'vue-router'

const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes: [
        // 登录
        {
            path: '/',
            name: 'Login',
            component: () => import('@/views/welcome/LoginPage.vue')
        },
        // 注册
        {
            path: '/register',
            name: 'Register',
            component: () => import('@/views/welcome/RegisterPage.vue')
        },
        // 找回密码
        {
            path: '/reset',
            name: 'Reset',
            component: () => import('@/views/welcome/ResetPage.vue')
        },
        // 管理系统
        {
            path: '/manage',
            name: 'Manager',
            component: () => import('@/views/Manager.vue'),
            // redirect: '/home',
            children: [
                // 学生
                {
                    // 学生报名订单班页面
                    path: 'home',
                    name: 'Home',
                    component: () => import('@/views/manager/Home.vue')
                },

                // 管理员
                {
                    // 用户管理页面
                    path: 'admin-account-admin',
                    name: 'Admin-Account-Admin',
                    component: () => import('@/views/manager/account/AccountAdminPage.vue')
                },
                {
                    // 角色管理页面
                    path: 'admin-role-admin',
                    name: 'Admin-Role-Admin',
                    component: () => import('@/views/manager/account/RoleAdminPage.vue')
                },
                {
                    // 管理员个人信息页面
                    path: 'admin-admin-info-admin',
                    name: 'Admin-AdminInfo-Admin',
                    component: () => import('@/views/manager/account/AdminInfoPage.vue')
                },
                {
                    // 学生管理页面
                    path: 'admin-student-admin',
                    name: 'Admin-Student-Admin',
                    component: () => import('@/views/manager/student/StudentAdminPage.vue')
                },
                {
                    // 教室管理页面
                    path: 'admin-teacher-admin',
                    name: 'Admin-Teacher-Admin',
                    component: () => import('@/views/manager/teacher/TeacherAdminPage.vue')
                },
                {
                    // 企业管理页面
                    path: 'admin-business-admin',
                    name: 'Admin-Business-Admin',
                    component: () => import('@/views/manager/business/BusinessAdminPage.vue')
                },
                {
                    // 订单班管理员管理页面
                    path: 'admin-order-class-admin-admin',
                    name: 'Admin-OrderClassAdmin-Admin',
                    component: () => import('@/views/manager/order-class-admin/OrderClassAdminAdminPage.vue')
                },
                {
                    // 订单班管理页面
                    path: 'admin-order-class-admin',
                    name: 'Admin-OrderClass-Admin',
                    component: () => import('@/views/manager/order-class/OrderClassAdminPage.vue')
                },
                {
                    // 课程管理页面
                    path: 'admin-course-admin',
                    name: 'Admin-Course-Admin',
                    component: () => import('@/views/manager/course/CourseAdminPage.vue')
                },
                {
                    // 学院管理页面
                    path: 'admin-collage-admin',
                    name: 'Admin-Collage-Admin',
                    component: () => import('@/views/manager/collage/CollageAdminPage.vue')
                },
                {
                    // 专业管理页面
                    path: 'admin-major-admin',
                    name: 'Admin-Major-Admin',
                    component: () => import('@/views/manager/collage/MajorAdminPage.vue')
                },
                {
                    // 楼栋管理页面
                    path: 'admin-building-admin',
                    name: 'Admin-Building-Admin',
                    component: () => import('@/views/manager/building/BuildingAdminPage.vue')
                },
                {
                    // 房间管理页面
                    path: 'admin-room-admin',
                    name: 'Admin-Room-Admin',
                    component: () => import('@/views/manager/building/RoomAdminPage.vue')
                },
                {
                    // 系统管理页面
                    path: 'admin-system-admin',
                    name: 'Admin-System-Admin',
                    component: () => import('@/views/manager/system/SystemAdminPage.vue')
                },


                // 学生
                {
                    // 学生个人信息页面
                    path: 'student-student-info-student',
                    name: 'Student-StudentInfo-Student',
                    component: () => import('@/views/manager/student/StudentInfoPage.vue')
                },
                {
                    // 学生个人成绩页面
                    path: 'student-course-score-info-student',
                    name: 'Student-CourseScoreInfo-student',
                    component: () => import('@/views/manager/course/CourseScoreInfoPage.vue')
                },
                {
                    // 学生个人综合评价
                    path: 'student-evaluate-student',
                    name: 'Student-Evaluate-student',
                    component: () => import('@/views/manager/student/StudentEvaluatePage.vue')
                },

                // 教师
                {
                    // 教师个人信息页面
                    path: 'teacher-teacher-info-teacher',
                    name: 'Teacher-TeacherInfo-Teacher',
                    component: () => import('@/views/manager/teacher/TeacherInfoPage.vue')
                },
                {
                    // 教师批改成绩页面
                    path: 'teacher-course-score-teacher',
                    name: 'Teacher-CourseScore-Teacher',
                    component: () => import('@/views/manager/course/CourseScoreTeacherPage.vue')
                },

                // 企业
                {
                    // 企业信息页面
                    path: 'business-business-info-business',
                    name: 'Business-BusinessInfo-Business',
                    component: () => import('@/views/manager/business/BusinessInfoPage.vue')
                },
                {
                    // 企业查看学生成绩页面
                    path: 'business-course-score-business',
                    name: 'Business-CourseScore-Business',
                    component: () => import('@/views/manager/course/CourseScoreBusinessPage.vue')
                },
                {
                    // 企业查看学生综合评价页面
                    path: 'business-student-info-business',
                    name: 'Business-Student-Info-Business',
                    component: () => import('@/views/manager/student/StudentInfoBusinessPage.vue')
                },
                {
                    // 企业查看订单班
                    path: 'business-order-class-business',
                    name: 'Business-Order-Class-Business',
                    component: () => import('@/views/manager/order-class/OrderClassBusinessPage.vue')
                },

                // 订单班管理员
                {
                    // 订单班管理员个人信息页面
                    path: 'order-class-admin-order-class-admin-info-order-class-admin',
                    name: 'OrderClassAdmin-OrderClassAdmin-OrderClassAdmin',
                    component: () => import('@/views/manager/order-class-admin/OrderClassAdminInfoPage.vue')
                },
                {
                    // 订单班安排页面
                    path: 'order-class-admin-order-class-order-class-admin',
                    name: 'OrderClassAdmin-OrderClass-OrderClassAdmin',
                    component: () => import('@/views/manager/order-class/OrderClassOrderClassAdminPage.vue')
                },
                {
                    // 订单班发布页面
                    path: 'order-class-admin-order-class-release-order-class-admin',
                    name: 'OrderClassAdmin-OrderClass-Release-OrderClassAdmin',
                    component: () => import('@/views/manager/order-class/OrderClassReleaseOrderClassAdminPage.vue')
                },
                {
                    // 订单班开班页面
                    path: 'order-class-admin-order-class-start-order-class-admin',
                    name: 'OrderClassAdmin-OrderClass-Start-OrderClassAdmin',
                    component: () => import('@/views/manager/order-class/OrderClassStartOrderClassAdminPage.vue')
                },
                {
                    // 订单班结班页面
                    path: 'order-class-admin-order-class-end-order-class-admin',
                    name: 'OrderClassAdmin-OrderClass-End-OrderClassAdmin',
                    component: () => import('@/views/manager/order-class/OrderClassEndOrderClassAdminPage.vue')
                },
                {
                    // 课程安排页面
                    path: 'order-class-admin-course-arrange-order-class-admin',
                    name: 'OrderClassAdmin-CourseArrange-OrderClassAdmin',
                    component: () => import('@/views/manager/course/CourseArrangeOrderClassAdminPage.vue')
                },
                {
                    // 审核学生页面
                    path: 'order-class-admin-student-order-class-admin',
                    name: 'OrderClassAdmin-Student-OrderClassAdmin',
                    component: () => import('@/views/manager/student/StudentOrderClassAdminPage.vue')
                },
                {
                    // 审核学生页面
                    path: 'order-class-admin-student-info-order-class-admin',
                    name: 'OrderClassAdmin-Student-Info-OrderClassAdmin',
                    component: () => import('@/views/manager/student/StudentInfoOrderClassAdminPage.vue')
                },
                {
                    // 查看成绩
                    path: 'order-class-admin-student-score-order-class-admin',
                    name: 'OrderClassAdmin-Student-Score-OrderClassAdmin',
                    component: () => import('@/views/manager/course/CourseScoreOrderClassAdminPage.vue')
                },
            ]
        }
    ]
})

export default router
